package com.examinantsdk.base;

import com.examinantsdk.BuildConfig;

/**
 * Create by Carson on 2021/3/16.
 */
public class Constants {

    public static class Urls {
        //用户相关
        private static final String MEMBER_URL_TEST = "https://member-test.pro.uuedutech.com/api/";
        private static final String MEMBER_URL_PRO = "https://member.pro.uuedutech.com/api/";

        //计算机
        private static final String NCRE_URL_TEST = "https://platform.test.uuedutech.com/api/";
        private static final String NCRE_URL_PRO = "https://platform.uuedutech.com/api/";

        //计算机
        private static final String NCRE_URL_TEST_2 = "https://platform.test.uuedutech.com/";
        private static final String NCRE_URL_PRO_2 = "https://platform.uuedutech.com/";

        //驾考
        private static final String DRIVE_URL_TEST = "https://platform.test.uuedutech.com/api/";
        private static final String DRIVE_URL_PRO = "https://platform.uuedutech.com/api/";

        //四六级
        private static final String CET_URL_TEST = "https://cet.test.uuedutech.com/";
        private static final String CET_URL_PRO = "https://cet.pro.uuedutech.com/";

        //考研
        private static final String GET_URL_TEST = "https://cet.test.uuedutech.com/";
        private static final String GET_URL_PRO = "https://cet.pro.uuedutech.com/";

        //专升本
        private static final String ZSB_URL_TEST = "https://cet.test.uuedutech.com/";
        private static final String ZSB_URL_PRO = "https://cet.pro.uuedutech.com/";

        //看一看
        private static final String SEE_URL_TEST = "http://circle.test.uuedutech.com/";
        private static final String SEE_URL_PRO = "https://circle.pro.uuedutech.com";

        //择校择专业
        private static final String CHOOSE_SCHOOL_URL_TEST = "https://school.test.uuedutech.com";
        private static final String CHOOSE_SCHOOL_URL_PRO = "https://school.pro.uuedutech.com";

        //考研数学
//        private static final String MATH_URL_TEST = "http://getmath.host.yw360.net/";
        private static final String MATH_URL_TEST = "https://cet.test.uuedutech.com/";
        private static final String MATH_URL_PRO = "https://cet.pro.uuedutech.com/";

        //排行榜
        private static final String RANKINGS_URL_TEST = "https://cet.test.uuedutech.com/";
        private static final String RANKINGS_URL_PRO = "https://cet.pro.uuedutech.com/";

        //小蚁同学
        private static final String AI_URL_TEST = "https://ai.test.uuedutech.com";
        private static final String AI_URL_PRO = "https://ai.pro.uuedutech.com";

        private static final String WORD_LEDGER_URL_TEST = "https://cet.test.uuedutech.com";

        private static final String WORD_LEDGER_URL_PRO = "https://cet.pro.uuedutech.com";

        public static final String MEMBER_BASE_URL = BuildConfig.BUILD_PRO ? MEMBER_URL_PRO : MEMBER_URL_TEST;
        public static final String NCRE_BASE_URL = BuildConfig.BUILD_PRO ? NCRE_URL_PRO : NCRE_URL_TEST;
        public static final String NCRE_BASE_URL_2 = BuildConfig.BUILD_PRO ? NCRE_URL_PRO_2 : NCRE_URL_TEST_2;
        public static final String DRIVE_BASE_URL = BuildConfig.BUILD_PRO ? DRIVE_URL_PRO : DRIVE_URL_TEST;
        public static final String CET_BASE_URL = BuildConfig.BUILD_PRO ? CET_URL_PRO : CET_URL_TEST;
        public static final String GET_BASE_URL = BuildConfig.BUILD_PRO ? GET_URL_PRO : GET_URL_TEST;
        public static final String SEE_BASE_URL = BuildConfig.BUILD_PRO ? SEE_URL_PRO : SEE_URL_TEST;
        public static final String CHOOSE_SCHOOL_BASE_URL = BuildConfig.BUILD_PRO ? CHOOSE_SCHOOL_URL_PRO : CHOOSE_SCHOOL_URL_TEST;
        public static final String ZSB_BASE_URL = BuildConfig.BUILD_PRO ? ZSB_URL_PRO : ZSB_URL_TEST;
        public static final String AI_BASE_URL = BuildConfig.BUILD_PRO ? AI_URL_PRO : AI_URL_TEST;
        public static final String RANKINGS_BASE_URL = BuildConfig.BUILD_PRO ? RANKINGS_URL_PRO : RANKINGS_URL_TEST;
        public static final String MATH_BASE_URL = BuildConfig.BUILD_PRO ? MATH_URL_PRO : MATH_URL_TEST;

        public static final String WORD_LEDGER_BASE_URL = BuildConfig.BUILD_PRO ? WORD_LEDGER_URL_PRO : WORD_LEDGER_URL_TEST;

        public static final String HEADER_MEMBER = "header_extend:member";

        public static final String FAQ_URL = NCRE_BASE_URL_2 + "#/qa/list";
    }

    public static class permissionTool {
        public static final int CAMERA = 1001;//拍照
    }

    public static class ThirdParty {
        public static final String WECHAT_ID = "wx16adcc47e506f597";
        public static final String WECHAT_APP_SERCERT = "13226d4adb89f40cf358fd5910a05683";
        public static final String QQ_ID = "101939371";
        public static final String QQ_KEY = "949249a8d7d5e8cab5ab43491f0acc14";
        public static final String WYQY = "cd3753630ae55bae4fa459df98e6b6d4";
        public static final String YM_KEY = "5fe83e5dadb42d58268ff8bd";

        public static final int IM_APP_KEY = BuildConfig.BUILD_PRO ? 1400828639 : 1400828015;
//        public static final int IM_APP_KEY = 1400828639;
    }

    public static class UserAgreement {
        public static final String provacy_pro = "https://platform.uuedutech.com/?#/user/user_agreement_privacy";
        public static final String agreement_pro = "https://platform.uuedutech.com/?#/user/user_agreement_user";
        public static final String UNREGISTER_PRO = "https://platform.uuedutech.com/?#/user/user_agreement_cancellation";
        public static final String about_app_pro = "https://platform.uuedutech.com/#/about";
        public static final String share_app_url_pro = "https://platform.uuedutech.com/?#/download/app";
        //积分邀请好友
        public static final String invite_friends_points_pro = "https://platform.uuedutech.com/#/download/share_reward";

        public static final String provacy_test = "https://platform.test.uuedutech.com/index2.html?#/user/user_agreement_privacy";
        public static final String agreement_test = "https://platform.test.uuedutech.com/index2.html?#/user/user_agreement_user";
        public static final String UNREGISTER_TEST = "https://platform.test.uuedutech.com/index2.html?#/user/user_agreement_cancellation";
        public static final String about_app_test = "https://platform.test.uuedutech.com/index2.html?#/about";
        public static final String share_app_url_test = "https://platform.test.uuedutech.com/?#/download/app";
        //积分邀请好友
        public static final String invite_friends_points_test = "https://platform.test.uuedutech.com/#/download/share_reward";

        //隐私协议
        public static final String provacy = BuildConfig.BUILD_PRO ? provacy_pro : provacy_test;
        //用户协议
        public static final String agreement = BuildConfig.BUILD_PRO ? agreement_pro : agreement_test;
        //关于考试蚁
        public static final String about_app = BuildConfig.BUILD_PRO ? about_app_pro : about_app_test;
        //分享页地址
        public static final String share_app_url = BuildConfig.BUILD_PRO ? share_app_url_pro : share_app_url_test;
        //积分中心邀请好友
        public static final String invite_friends_points = BuildConfig.BUILD_PRO ? invite_friends_points_pro : invite_friends_points_test;
        //用户注销协议
        public static final String UNREGISTER = BuildConfig.BUILD_PRO ? UNREGISTER_PRO : UNREGISTER_TEST;
        //新版本下载地址
        public static final String app_download = "https://uuedu-platform.oss-cn-hangzhou.aliyuncs.com/jk/examinant.apk";
    }

    public static final int TYPE_COMPUTER = 1;
    public static final int TYPE_JK = 3;
    public static final int TYPE_CET_GENUS_ID = 4;
    public static final int TYPE_GET_GENUS_ID = 5;
    public static final int TYPE_NEMT_GENUS_ID = 7;
    public static final int TYPE_ZSB_GENUS_ID = 6;
    public static final int TYPE_GK_GENUS_ID = 7;
    public static final int PAGE_SIZE = 20;
    public static final int MATH_PAGE_SIZE = 50;

    public static final int CET4_CATEGORY_ID = 50;
    public static final int CET6_CATEGORY_ID = 51;
    public static final int NEMT_CATEGORY_ID = 56;
    //专升本-英语
    public static final int ZSB_ENGLISH_CATEGORY_ID = 57;
    //专升本-语文
    public static final int ZSB_CHINESE_CATEGORY_ID = 70;
    //专升本-计算机
    public static final int ZSB_COMPUTER_CATEGORY_ID = 73;
    //专升本-政治
    public static final int ZSB_POLITICS_CATEGORY_ID = 72;
    //专升本-数学
    public static final int ZSB_MATHEMATICS_CATEGORY_ID = 71;
    //专升本-数学一
    public static final int ZSB_MATHEMATICS_1_CATEGORY_ID = 74;
    //专升本-数学二
    public static final int ZSB_MATHEMATICS_2_CATEGORY_ID = 75;
    //专升本-数学三
    public static final int ZSB_MATHEMATICS_3_CATEGORY_ID = 76;

    public static final String THEME_SETTINGS = "theme_settings";
    public static final String WEB_PARAMS = "web_params";
    public static final String TOKEN_INVALID = "token_invalid";
    public static final String TOKEN_EXPIRE = "expire_at";
    public static final String SHARE_TITLE_DEFAULT = "考试蚁APP-科技让考试更轻松";
    public static final String SHARE_DES_DEFAULT = "激发更多学习乐趣";

    public static final int VIDEO_PLAY_APPID_JSJ = 1251483318;
    public static final int VIDEO_PLAY_APPID_JK = 1312408808; // 1306119585 -> 1312408808
    public static final int VIDEO_PLAY_APPID_JK_SMALL_VIDEO = 1500018218; // 1306119585 -> 1312408808
    public static final String MS_OFFICE = "9";
    public static final String WPS_OFFICE = "44";
    //广告初始化appID 测试为：9093517612222759  正式为：3015978889815724
    public static final String AD_SPACE_ID = "3015978889815724";
    //启动页广告位ID 测试为：1101152570  正式为：1202950795
    public static final String AD_SPACE_APP_ID = "1202950795";

    public static class CET {
        public static final int WORD_LYL = 0;
        public static final int WORD_LYL_PLAN = 1;
        public static final int WORD_LYL_CS = 2;

        public static final int WORD_BOOK_NO = 0; //开始学习
        public static final int WORD_BOOK_JL = 1; //加量学习
        public static final int WORD_BOOK_CX = 2; //重新学习

        public static final int WRITE = 1;
        public static final int LISTEN = 2;
        public static final int READ = 3;
        public static final int TRANS = 4;

        public static final int WORD_UNKNOW = 0;
        public static final int WORD_KNOW = 1;
        public static final int WORD_MOHU = 2;
        public static final int WORD_UNSTUDY = 3;
        public static final int WORD_TYPE_HIGH = 1;
        public static final int WORD_TYPE_OUTLINE = 2;
        public static final int WORD_REVIEW = 4;

        public static final int WORD_UNCOLLECT = 0;
        public static final int WORD_COLLECTED = 1;

        public static final int CET4_COLUMN_XXFF = 75;
        public static final int CET4_COLUMN_KSZX = 76;
        public static final int CET4_COLUMN_KDJX = 77;

        public static final int CET6_COLUMN_XXFF = 81;
        public static final int CET6_COLUMN_KSZX = 82;
        public static final int CET6_COLUMN_KDJX = 83;

        public static final int CET_SELECT_ALL = 100;
        public static final int CET_SELECT_WRITE = 1;
        public static final int CET_SELECT_LISTEN = 2;
        public static final int CET_SELECT_TRANS = 6;
        //21听力A 22听力B 23听力C
        public static final int CET_SELECT_LISTEN_A = 21;
        public static final int CET_SELECT_LISTEN_B = 22;
        public static final int CET_SELECT_LISTEN_C = 23;
        public static final int CET_SELECT_READ = 20;

        //3:完词填空，4，长篇阅读，5:仔细阅读
        public static final int CET_SELECT_READ_CLOZE = 3;
        public static final int CET_SELECT_READ_LONG = 4;
        public static final int CET_SELECT_READ_CAREFUL = 5;
        public static final int CET_SELECT_WORD = 30;//单词练习
        public static final int CET_SELECT_SKILL = 31;//技巧阅读
        public static final int CET_COURSE_VIDEO = 32;//技巧阅读
        public static final int CET_ANSWER_STATUS = 0;
        public static final int CET_ANSWER_STATUS_SUB = 1;

        public static final int ALL_COUNT = 57;
        public static final int ALL_SCORE = 710;
        public static final int TIME_WRITE_TRANS = 30;
        public static final int TIME_LISTEN_4 = 25;
        public static final int TIME_LISTEN_6 = 30;
        public static final int TIME_READ = 40;
        public static final float WRITE_ALL_SCORE = 106.5f;
        public static final float TRANS_ALL_SCORE = 106.5f;
        public static final float LISTEN_ALL_SCORE = 248.5f;
        public static final float READING_ALL_SCORE = 248.5f;

        public static final int STUDY_DURATION = 185;

        public static final int VIDEO_TYPE_POINT = 1;
        public static final int VIDEO_TYPE_SUBJECT = 2;
        //
        public static final int VIDEO_POLITICS_TYPE_POINT = 100;
        public static final int IS_HAS = 1;

        public static final String EVENT_HOME_WORD = "cet_home_module_word";
        public static final String EVENT_HOME_LEARNING_HOMEPAGE = "cet_home_module_home";
        public static final String EVENT_HOME_TEST = "cet_home_module_test";
        public static final String EVENT_HOME_PLAN = "cet_home_module_plan";
        public static final String EVENT_HOME_EVAL = "cet_home_module_eval";
        public static final String EVENT_HOME_COURSE = "cet_home_module_course";
    }

    public static class WORD {
        public static final int WORD_TYPE_ALL = 0;
        public static final int WORD_TYPE_GP = 2;
        public static final int WORD_TYPE_ZP = 3;
        public static final int WORD_TYPE_DP = 4;
        public static final int WORD_TYPE_LP = 5;
        public static final int WORD_TYPE_OK = 6;
        public static final int WORD_TYPE_BC = 7;
        public static final int WORD_TYPE_JC = 8;
        public static final int WORD_TYPE_BOOK = -1;
        public static final int TIME_POST_COUNT = 20;
    }

    public static class GET {
        public static final int GET1_CATEGORY_ID = 53;
        public static final int GET2_CATEGORY_ID = 54;
        //考研政治
        public static final int GET_POLITICAL_ID = 55;
        public static final int GET_MATH_1 = 90;
        public static final int GET_MATH_2 = 91;
        public static final int GET_MATH_3 = 92;
        //考研专业课-心理学
        public static final int GET_PSY = 93;
        /**
         * 英语知识运用
         */
        public static final int GET_USE_OF_ENGLISH = 40;

        /**
         * 仔细阅读
         */
        public static final int GET_READING_DETAIL = 53;

        /**
         * 新题型大类
         */
        public static final int GET_NEW_SUBJECT = 51;

        /**
         * 新题型-文章填空
         */
        public static final int GET_READING_FIT_SEGMENT = 54;

        /**
         * 新题型-标题填空
         */
        public static final int GET_READING_FIT_HEADING = 55;

        /**
         * 新题型-段落排序
         */
        public static final int GET_READING_ORDER_PARA = 56;

        /**
         * 新题型-多项对应
         */
        public static final int GET_READING_MATCH_ITEMS = 57;

        /**
         * 英语一阅读理解划线翻译
         */
        public static final int GET_READING_TRANSLATION = 58;

        /**
         * 英语二翻译
         */
        public static final int GET_TWO_TRANSLATION = 60;

        /**
         * 小作文
         */
        public static final int GET_WRITING_A = 72;

        /**
         * 大作文
         */
        public static final int GET_WRITING_B = 73;

        public static final String EVENT_HOME_WORD_GET = "get_home_module_word";
        public static final String EVENT_HOME_TEST_GET = "get_home_module_test";
        public static final String EVENT_HOME_EVAL_GET = "get_home_module_eval";
        public static final String EVENT_HOME_COURSE_GET = "get_home_module_course";
    }
}
